TOP = ..

include $(TOP)/config
include $(TOP)/arch.make

LIB = $(TOP)/libfaky.a

AP_OBJS = main.o
AP_HEADER =

AP = gap

all: $(AP)

%.o: %.c $(AP_HEADER)
	$(CC) $(CFLAGS) -c $< -o $@

$(AP): $(AP_OBJS)
	$(CC) -o $(TOP)/$@ $^ $(LIB) $(LDFLAGS)

clean:
	$(RM) $(AP_OBJS) $(TOP)/$(AP) *.o
	